//
//  ZJPickerview.h
//  EducationWorld
//
//  Created by haoyi on 13-9-25.
//  Copyright (c) 2013年 haoyi. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ZJPickerviewDelegate;

@interface ZJPickerview : UIView
<UIPickerViewDelegate, UIPickerViewDataSource>{

    UIPickerView *_zjPickView;
    NSArray *_contentArray;
    int _iSelectedIndex;
    UIButton*blackview;
    UIToolbar *_pickviewToolbar;
    
    BOOL _iSShowed;
    
    NSString *_strKeyName;      //要显示的值的key
    
    int _a;
}

@property(nonatomic,assign)BOOL isShowed;
@property(nonatomic, assign)id<ZJPickerviewDelegate> zjDelegate;

- (id)initWithTitle:(NSString *)title KeyName:(NSString *)keyName;

- (void)showInView:(UIView *)view withArray:(NSArray *)array selectedIndex:(int)selectedIndex;

-(void)hideZJPickerView;
-(void)settype:(int)a;


@end

@protocol ZJPickerviewDelegate <NSObject>

@optional
-(void)ZJPickerview:(ZJPickerview *)zjPickerview didFineshesAtIndex:(int)index;

@end
